﻿using Net5ApiAndEfMySql.DtoModel.Common;
using Net5ApiAndEfMySql.DtoModel.SystemAdmin;
using Net5ApiAndEfMySql.PoModel.SystemAdmin;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Net5ApiAndEfMySql.IRepository.SystemAdmin
{
    public interface IAdminUserRepository
    {
        AdminUserPo GetAdminUserByUserName(string userName);
        PagerResult<AdminUserPo> GetPageList(SearchModel m);

        /// <summary>
        /// 用户添加
        /// </summary>
        /// <param name="user"></param>
        /// <returns></returns>
        bool AdminUserAdd(AdminUserDto user);

        bool AdminUserUpdate(AdminUserDto user);

        AdminUserDto GetAdminUserDtoByUserName(string userName);


    }
}
